#include<bits/stdc++.h>
using namespace std;

typedef long long i64;
i64 n;
i64 r[200005];
i64 t[200005];

int main(){
    freopen("duel.in", "r", stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    cin >> n;
    for(i64 i=1;i<=n;++i) cin >> r[i];
    for(i64 i=1;i<=n;++i) t[r[i]]++;
    i64 cnt = 0;
    for(i64 i=0;i<=100005;++i){
        if(t[i]){
            cnt = max(0LL, cnt - t[i]);
            cnt += t[i];
        }
    }
    cout << cnt << endl;
    return 0;
}